package plugs

import (
	"fmt"

	"gitee.com/wu-jin-feng/fgin"
)

func init() {
	// 将组件注册进入
	fgin.RegisteGrpcPlug("my_mysql", &MyMysql{})
}

type MyMysql struct {
	Host string `yaml:"host" json:"host"`
	Port int    `yaml:"port" json:"port"`
}

func (c *MyMysql) Start(logger *fgin.FginSugaredLogger) {
	fmt.Println("Start MyMysql", c)
}
